package com.xqb.modules.domain.po;

import com.xqb.common.annotation.Excel;
import com.xqb.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 媒资对象 med_media
 * 
 * @author xqb
 * @date 2024-10-15
 */
public class MedMedia extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文件在云端的唯一标示，例如：387702302659783576 */
    @Excel(name = "文件在云端的唯一标示，例如：387702302659783576")
    private String fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String filename;

    /** 媒体播放地址 */
    @Excel(name = "媒体播放地址")
    private String mediaUrl;

    /** 媒体封面地址 */
    @Excel(name = "媒体封面地址")
    private String coverUrl;

    /** 视频时长，单位秒 */
    @Excel(name = "视频时长，单位秒")
    private Long duration;

    /** 视频大小，单位是字节 */
    @Excel(name = "视频大小，单位是字节")
    private Long size;

    /** 请求id */
    @Excel(name = "请求id")
    private String requestId;

    /** 状态：1-上传中，2-已上传 */
    @Excel(name = "状态：1-上传中，2-已上传")
    private Long status;

    /** 部门id */
    @Excel(name = "部门id")
    private Long depId;

    /** 逻辑删除，默认0 */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileId(String fileId) 
    {
        this.fileId = fileId;
    }

    public String getFileId() 
    {
        return fileId;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setMediaUrl(String mediaUrl) 
    {
        this.mediaUrl = mediaUrl;
    }

    public String getMediaUrl() 
    {
        return mediaUrl;
    }
    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setRequestId(String requestId) 
    {
        this.requestId = requestId;
    }

    public String getRequestId() 
    {
        return requestId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDepId(Long depId) 
    {
        this.depId = depId;
    }

    public Long getDepId() 
    {
        return depId;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileId", getFileId())
            .append("filename", getFilename())
            .append("mediaUrl", getMediaUrl())
            .append("coverUrl", getCoverUrl())
            .append("duration", getDuration())
            .append("size", getSize())
            .append("requestId", getRequestId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("depId", getDepId())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
